package com.huawei.appmarket.service.externalapi.jumpers;

import android.net.Uri;
import android.text.TextUtils;
import o.ceb;
import o.Logger;
import o.dyr;
import o.dys.a;
import o.dyw;

public class HttpShareLinkActionJumperEx extends dyw {
    public HttpShareLinkActionJumperEx(dyr o_dyr, a aVar, Uri uri) {
        super(o_dyr, aVar, uri);
    }

    public void ॱ() {
        Object path = this.ˊ.getPath();
        if (TextUtils.isEmpty(path)) {
            ˊ();
            return;
        }
        String[] split = path.split("/");
        if (split.length >= 3) {
            String uri = this.ˊ.toString();
            if (uri.contains("/h5/")) {
                ॱ(this.ˊ);
                return;
            } else if (uri.contains("/h5?")) {
                path = ceb.ˏ(this.ˊ, "url");
                if (TextUtils.isEmpty(path)) {
                    ˊ();
                    return;
                } else {
                    ॱ(Uri.parse(path));
                    return;
                }
            } else if ("n".equals(split[2])) {
                ॱ(split);
                return;
            } else {
                ˊ();
                return;
            }
        }
        ˊ();
    }

    private void ॱ(String[] strArr) {
        if (strArr.length >= 5) {
            String str = strArr[3];
            if ("app".equals(str) || "orderappdetail".equals(str) || "widesubstancedetail".equals(str) || "substancedetail".equals(str)) {
                ॱ(str, strArr[4]);
                return;
            } else {
                ˊ();
                return;
            }
        }
        Logger.ˋ("HttpShareLinkActionJumperEx", "uri format error!");
        ˊ();
    }

    protected void ॱ(String str, String str2) {
        ˏ(str, str2);
    }
}
